package com.codebattery.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author cay91
 * @Date 2020-09-11 2:35 AM
 * @Version 1.0
 */

/**
 * 订单中所包含的商品
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem {
    private Integer id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 商品编号
     */
    private Long goodsId;

    private String goodsPic;

    private String goodsName;

    private String goodsBrand;

    private String goodsSn;

    private BigDecimal goodsPrice;

    private Integer goodsQuantity;

    private Integer goodsSkuId;

    private String goodsSkuCode;

    private Integer goodsCategoryId;

    /**
     * 商品个数
     */
    private Integer goodsCount;

    /**
     * 商家ID
     */
    private Integer shopId;

    /**
     * 商家名称
     */
    private String shopName;

    /**
     * 商品的销售属性
     */
    private String sp1;

    private String sp2;

    private String sp3;

    /**
     * 商品促销名称
     */
    private String promotionName;

    /**
     * 商品促销分解金额
     */
    private BigDecimal promotionAmount;

    /**
     * 优惠券优惠分解金额
     */
    private BigDecimal couponAmount;

    /**
     * 积分优惠分解金额
     */
    private BigDecimal integrationAmount;

    /**
     * 该商品经过优惠后的分解金额
     */
    private BigDecimal realAmount;

    private Integer giftIntegration;

    private Integer giftGrowth;

    /**
     * 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]
     */
    private String goodsAttr;

    /**
     * 所属店铺
     */
    private Integer storeId;

    private Integer status;

    private Integer type;

    private String storeName;

    private Integer isFenxiao;

    private Integer inviteMemberid;

    /**
     * 注册时间
     */
    private Date createTime;

    /**
     * 注册时间
     */
    private Date updateTime;
}